# Maintainer : Tobias Powalowski <tpowa@archlinux.org>

pkgname=archboot
pkgver=2021.09
pkgrel=43
pkgdesc="Advanced, modular arch boot/install image creation utility"
arch=(any)
license=('GPL')
url="https://wiki.archlinux.org/title/Archboot"
depends=('mkinitcpio' 'wget' 'bash' 'coreutils' 'cryptsetup' 'dialog' 'e2fsprogs' 'findutils' 'gawk' 'grep' 'iputils' 'jfsutils'
         'less' 'lvm2' 'mdadm' 'kmod' 'nano' 'ncurses' 'net-tools' 'gnu-netcat' 'procps-ng' 'psmisc' 'reiserfsprogs' 'sed' 'snarf'
         'tar' 'util-linux>=2.21-6' 'bind' 'which' 'kbd' 'wireless_tools' 'xfsprogs' 'hdparm' 'memtest86+' 'inetutils'
         'openssh' 'hwdetect' 'shadow' 'bridge-utils' 'ifenslave' 'dosfstools' 'glibc' 'linux' 'kexec-tools' 'ppp' 'rp-pppoe'
         'iptables-nft' 'ntfs-3g' 'pciutils' 'usbutils' 'vpnc' 'openvpn' 'b43-fwcutter' 'wpa_supplicant' 'rsync' 'gzip' 'libarchive'
	 'device-mapper' 'screen' 'elfutils' 'pam' 'cracklib' 'nfs-utils' 'nfsidmap' 'readline' 'acl' 'attr' 'pcre' 'cpio'
	 'fuse' 'libusb' 'vim' 'lzo' 'libsasl' 'libldap' 'gpm' 'libevent' 'gcc-libs' 'sdparm' 'licenses' 'pptpclient' 'ipw2100-fw'
	 'ipw2200-fw' 'smbclient'  'dhcpcd' 'openssl' 'dmraid' 'linux-atm' 'netctl' 'parted' 'tzdata' 'ntp' 'libgcrypt' 'iw' 'crda'
	 'libnl' 'iproute2' 'wireless-regdb' 'dhclient' 'syslinux' 'mtools' 'fsarchiver' 'xz' 'libtirpc' 'rpcbind' 'testdisk'
	 'wipe' 'ddrescue' 'ifplugd' 'libgssglue' 'mkinitcpio-nfs-utils' 'gptfdisk' 'nilfs-utils' 'btrfs-progs'
	 'iana-etc' 'libusb-compat' 'keyutils' 'libisoburn' 'file' 'curl'  'smartmontools' 'dnsmasq' 'lftp'
	 'openconnect' 'libxml2' 'libproxy' 'tcpdump' 'nmap' 'lua' 'gnutls' 'nettle' 'libtasn1' 'expat' 'progsreiserfs'
	 'glib2' 'freetype2' 'libssh2' 'libedit' 'talloc' 'libjpeg-turbo' 'dmidecode' 'pth' 'gnupg' 'libksba' 'libassuan' 'pinentry'
	 'gpgme' 'ldns' 'dnssec-anchors' 'hwids' 'systemd' 'archlinux-keyring' 'haveged' 'pambase' 'chntpw' 'traceroute' 'grub' 
	 'systemd-sysvcompat' 'intel-ucode' 'arch-install-scripts' 'zsh' 'gdbm' 'grml-zsh-config' 'cpupower' 'wvdial' 'xl2tpd' 
	 'usb_modeswitch' 'refind' 'efibootmgr' 'f2fs-tools' 'efitools' 'lockdown-ms' 'efivar' 'ethtool' 'exfatprogs' 'broadcom-wl'
	 'fuse3' 'flex' 'expac' 'amd-ucode' 'edk2-shell' 'cdrtools' 'mktorrent' 'nvme-cli' 'fatresize' 'iwd')     
makedepends=('git')
optdepends=('archboot-linux-firmware: for stripped down firmware inclusion on image file'
            'linux-firmware: for firmware inclusion on image file')
source=("git+https://gitlab.archlinux.org/tpowa/archboot.git#tag=${pkgver}-${pkgrel}?signed")
backup=('etc/archboot/x86_64.conf'
        'etc/archboot/presets/x86_64'
)
install=archboot.install
sha256sums=('SKIP')
validgpgkeys=('5B7E3FB71B7F10329A1C03AB771DF6627EDF681F' # Tobias Powalowski <tpowa@archlinux.org>
             )
package()
{
  cd "$srcdir/archboot"
  mv etc/ usr/ "$pkgdir/"
}
